//
//  JXRequestID.h
//  Demo
//
//  Created by xiu on 2020/4/22.
//  Copyright © 2020 111. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^RequestResult)(BOOL isSuccess,id object);
@interface JXRequestManager : AFHTTPSessionManager
+ (JXRequestManager *)sharedInstance;
@end


#define MAKE_ERROR(text,code) [[LOError alloc] initWithText:text errCode:code]

typedef NS_ENUM(int, JXErrorCodeType){
    JXErrorCodeTypeUnknown   = 0,
};

@interface LOError : NSObject
@property(nonatomic,strong)NSString *text;
@property(nonatomic,assign)NSInteger code;
- (id)initWithText:(NSString *)text errCode:(NSInteger)code;
@end

NS_ASSUME_NONNULL_END
